<?php

include "../../shared/config.php";
$em_n = $_POST['company_name'];
$em_d = $_POST['detail'];
$em_c=$_POST['contact'];
$ID = $_GET['id'];
$clan = $_GET['clan'];
if($clan == "zh"){
$sql = "UPDATE em SET company_name = '$em_n', detail = '$em_d', contact = '$em_c' WHERE em_id = $ID";
}
else{
$sql = "UPDATE em_en SET company_name = '$em_n', detail = '$em_d', contact = '$em_c' WHERE em_id = $ID";
}
$insert = mysqli_query($conn,$sql);

if(!$insert)
    {  
        echo "无法新增术语信息: ".mysqli_error($conn);  
    }  
    else  
    {  
		header("location: ../../page/boss/index.php");
    }  
 
 
mysqli_close($conn);
?>